package com.ruoyi.workflow.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 流程定义节点对象 bus_bpmn_node
 * 
 * @author xiaodu
 * @date 2023-06-24
 */
@Getter
@Setter
public class BpmnNode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 ID */
    private Long id;

    /** bus_bpmn_info表的ID */
    private Long bpmnInfoId;

    /** 任务节点 */
    private String nodeKey;

    /** 任务节点描述 */
    private String nodeDesc;

    /** 审核人员 */
    private List<Long> auditors;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bpmnInfoId", getBpmnInfoId())
            .append("nodeKey", getNodeKey())
            .append("nodeDesc", getNodeDesc())
            .toString();
    }
}
